package com.ytf.core.exception;

import lombok.Data;

/**
 * @className: CodeMessage
 * @author: YTF
 * @date: 2025/4/10 16:41
 * @version: 1.0
 * @description: 
 */
@Data
public class CodeMessage {
    private int code;
    private String msg;

    private BusinessException businessException;

    public CodeMessage(int code, String msg) {
        this.code = code;
        this.msg = msg;
        this.businessException = new BusinessException(code, msg);
    }
}
